#include <iostream>
#include "Credit.h"

using namespace std;

int main()
{
	int foo1;
	double bar1, bar2, bar3, bar4;
	cout << "Enter account number (-1 to end): ";
	cin >> foo1;

	while (foo1 != -1) {
		cout << "Enter beginning balance: ";
		cin >> bar1;
		cout << "Enter total charges: ";
		cin >> bar2;
		cout << "Enter total credits: ";
		cin >> bar3;
		cout << "Enter credit limit: ";
		cin >> bar4;
		
		Credit Consumer(foo1, bar1, bar2, bar3, bar4);
		Consumer.displayMessage();

		cout << endl << "Enter account number (-1 to end): ";
		cin >> foo1;
	}

	return 0;
}

